﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QueryDetail.aspx.cs" Inherits="Admin.Zonghe.QueryDetail" %>

<%@ Import Namespace="BaseData.Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>房屋详细信息</title>
    <link href="/Admin/Css/rightbar.css?FileVersion=<%=FileVersion %>" rel="stylesheet"
        type="text/css" />
    <script src="/Admin/Scripts/jquery-1.4.1.min.js?FileVersion=<%=FileVersion %>" type="text/javascript"></script>
    <script type="text/javascript">
        //将页面内要打印的内容加入中间<!--startprint1-->打印区域<!--endprint1-->
        //打印按纽 onclick=preview(1)
        function preview(oper) {
            if (oper < 10) {
                bdhtml = window.document.body.innerHTML; //获取当前页的html代码
                sprnstr = "<!--startprint" + oper + "-->"; //设置打印开始区域
                eprnstr = "<!--endprint" + oper + "-->"; //设置打印结束区域
                prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18); //从开始代码向后取html
                prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); //从结束代码向前取html
                window.document.body.innerHTML = prnhtml;
                $("div:[name='printhidden']").css("display", "none");
                $("table:[name='printhidden']").css("display", "none");
                window.print();
                window.document.body.innerHTML = bdhtml;
                $("div:[name='printhidden']").css("display", "");
                $("table:[name='printhidden']").css("display", "");
            }
            else {
                window.print();
            }
        }  
    </script>
</head>
<body>
    <!--startprint1-->
    <div class="warp">
        <div class="topnav">
            <ul>
                <li><a href="javascript:void(0);" style="cursor: default;" class="on_nav"><span>房屋详细信息</span></a></li>
            </ul>
        </div>
        <div class="tab mt15">
            <ul>
                <li class="in_on"><strong>出租屋信息</strong></li>
            </ul>
        </div>
        <div class="cont" style="padding: 0; width: 678px;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="stb01">
                <tr style="padding: 2px 0 2px 15px; height: 32px; vertical-align: middle;">
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%; padding-left: 10px;">
                        房产编号：<%=hie.CertificateID %>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        房主姓名：<%=hie.Name %>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        身份证号：<%=hie.IDCardNum %>
                    </td>
                </tr>
                <tr style="padding: 2px 0 2px 10px; height: 32px;">
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%; padding-left: 10px;">
                        所属部门：<%=TableHelper.GetStringValueFromTable(dtDepartmet, "id=" + hie.DepartmentID, "Name")%>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        管理人员：<%=TableHelper.GetStringValueFromTable(dtManager, "userid=" + hie.ManagerID, "sName")%>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        所在地段：<%=TableHelper.GetStringValueFromTable(dtDiduan, "id=" + hie.DiduanID, "Name")%>
                    </td>
                </tr>
                <tr style="padding: 2px 0 2px 15px; height: 32px; vertical-align: middle;">
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%; padding-left: 10px;">
                        颁发日期：<% =FormatData<DateTime>(hie.CertificateDate, "yyyy-MM-dd")%>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        使用期限：<%=hie.YearLimit%>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        门牌号码：<%=hie.BuildingNum%>
                    </td>
                </tr>
                <tr style="padding: 2px 0 2px 15px; height: 32px; vertical-align: middle;">
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%; padding-left: 10px;">
                        土地面积：<%= hie.TudiArea %>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        房产面积 ：<%=hie.FangchanArea%>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        房产计税面积：<%=hie.OriginalPrice%>
                    </td>
                </tr>
                <tr style="padding: 2px 0 2px 15px; height: 32px; vertical-align: middle;">
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%; padding-left: 10px;">
                        房产原值：<%= hie.RemainPrice%>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        房产类型 ：<%=hie.HouseType %>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        手机号码：<%=hie.MobileCode%>
                    </td>
                </tr>
                <tr style="padding: 2px 0 2px 15px; height: 32px; vertical-align: middle;">
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%; padding-left: 10px;">
                        电话号码：<%= hie.Telephone%>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%" colspan="2">
                        家庭地址 ：<%=hie.Address%>
                    </td>
                </tr>
            </table>
        </div>
        <div class="tab mt15">
            <ul>
                <li class="in_on"><strong>
                    <%= rie.HouseType2 == "承租人信息" ? "" : "自用房产信息"%></strong></li>
            </ul>
        </div>
        <div class="cont" style="padding: 0; width: 678px;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="stb01" style='display: <%= rie.HouseType2 == "出租" ? "" : "none" %>'>
                <tr style="padding: 2px 0 2px 15px; height: 32px; vertical-align: middle;">
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%; padding-left: 10px;">
                        承租人姓名：<%=rie.RentName %>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        身份证号：<%=rie.RentIDCardNum%>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        手机号码：<%=rie.RentMobileCode%>
                    </td>
                </tr>
                <tr style="padding: 2px 0 2px 15px; height: 32px; vertical-align: middle;">
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%; padding-left: 10px;">
                        电话号码：<%=rie.RentTelephone%>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        承租面积：<%=rie.RentArea%>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        承租金额：<%=rie.RentPrice%>
                    </td>
                </tr>
                <tr style="padding: 2px 0 2px 15px; height: 32px; vertical-align: middle;">
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%; padding-left: 10px;">
                        门店名称：<%=rie.ShopName%>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        承租日期：<% =FormatData<DateTime>(rie.StartDate, "yyyy-MM-dd")%>至<% =FormatData<DateTime>(rie.EndDate, "yyyy-MM-dd")%>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                        出租期限：<%=rie.LimitDays%>
                    </td>
                </tr>
            </table>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="stb01" style='display: <%= rie.HouseType2 == "自用" ? "" : "none" %>'>
                <tr style="padding: 2px 0 2px 15px; height: 32px; vertical-align: middle;">
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%; padding-left: 10px;">
                        自用日期：<% =FormatData<DateTime>(rie.StartDate, "yyyy-MM-dd")%>至<% =FormatData<DateTime>(rie.EndDate, "yyyy-MM-dd")%>
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                    </td>
                    <td align="left" valign="middle" bgcolor="#F3FBFE" style="width: 33%">
                    </td>
                </tr>
            </table>
        </div>
        <div class="tab mt15">
            <ul>
                <li class="in_on"><strong>缴税信息</strong></li>
            </ul>
        </div>
        <div class="cont" style="padding: 0; width: 678px;">
            <table width="676" border="0" cellspacing="0" cellpadding="0" class="maintb" style="border-top: 0;"
                id="tbDataList">
                <asp:Repeater ID="rptDataList" runat="server">
                    <HeaderTemplate>
                        <tr>
                            <th width="80" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                税款属期
                            </th>
                            <th width="80" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                是否完税
                            </th>
                            <th width="120" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                完税日期
                            </th>
                            <th width="150" height="30" align="center" valign="middle" bgcolor="#DAF0FE">
                                税款总额
                            </th>
                        </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td align="center">
                                <%#Eval("Year")%>
                            </td>
                            <td align="center">
                                <%#Eval("IsTaxOK").ToString() == "1" ? "是" : "否"%>
                            </td>
                            <td align="center">
                                <%#FormatData<DateTime>(Eval("ComDate"), "yyyy-MM-dd")%>
                            </td>
                            <td align="center">
                                <%#Eval("TotalTax")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
        <div class="btudiv" style="padding-top: 15px; float: none; height: 22px; width: 93%;"
            name="printhidden">
            <ul style="width: 200px;">
                <li><a id="a1" class=" btuyellow_arrow" href="javascript:void(0)" onclick="javascript:history.back(-1);return false;"
                    target="_blank"><span>返 回</span></a></li>
                <li><a id="a2" class=" btuyellow_arrow" href="#" onclick="preview(1);return false;"
                    style="float: 40px;"><span>打 印</span></a></li></ul>
        </div>
    </div>
    <!--endprint1-->
</body>
</html>
